package com.fosdata.dpm.entity.dto;



import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Description:
 * Created by yhsh on 2022/7/12 11:30
 * version 2.0
 * 方法说明  分页插件pageHelper
 */

public class PageQueryRequestDTO implements Serializable {

    private static final long serialVersionUID = -4869594085374385813L;
    @NotNull(message = "分页大小不能为空")
    private int pageSize;
    @NotNull(message = "分页参数不能为空")
    private int pageNum;

    private String sort;
    private String sortOrder;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }


    public PageQueryRequestDTO(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

}
